﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MebAppMarketplace.Model
{
    /// <summary>
    /// 用户钱包
    /// </summary>
    public class UserWallet : BaseModel
    {
        public int Banlance { get; set; }
        public bool Locked { get; set; }
        public string LockReason { get; set; }
        public DateTime LockTime { get; set; }
    }

    /// <summary>
    /// 钱包记录
    /// </summary>
    public class UserWalletHistory : BaseModel
    {
        public int UserID { get; set; }
        /// <summary>
        /// 变更值（正数导致余额增加，负数导致余额减少）
        /// </summary>
        public int Changes { get; set; }
        /// <summary>
        /// 操作前余额
        /// </summary>
        public int LBanlance { get; set; }
        /// <summary>
        /// 操作后余额
        /// </summary>
        public int RBanlance { get; set; }
        /// <summary>
        /// 操作名称（充值|消费|提现）
        /// </summary>
        public string OpName { get; set; }
        /// <summary>
        /// 明细 JSON/HTML
        /// </summary>
        public string OpDetail { get; set; }

        public DateTime CreateTime { get; set; }
    }
}
